package com.edu.networkexperimentation.common;

import java.math.BigDecimal;
import java.math.RoundingMode;
import java.text.DecimalFormat;

public class DataUtil {
    public static double des(double a) {
        DecimalFormat decimal = new DecimalFormat("0.0000");
        decimal.setRoundingMode(RoundingMode.DOWN);
        a = Double.parseDouble(decimal.format(a));
        return a;
    }
}
